package exce1.exce01;

import java.util.Scanner;

public class demo4 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int[] arr=new int[6];
        for (int i = 0; i < arr.length; i++) {
            System.out.println("请输入第"+(i+1)+"个评委分值：");
            int a=sc.nextInt();
            if(a<=100&&a>=0){
                arr[i]=a;
            }else {
                System.out.println("输入有误，请重新输入：");
                i--;
            }
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
